package com.repair.order.exception;

import com.repair.base.exception.ErrorCode;

/**
 * @author chunyu
 * @since 2024/10/11,15:28
 */
public enum OrderErrorCode implements ErrorCode {

    /**
     * 订单不存在
     */
    ORDER_NOT_EXIST(11001, "订单不存在或已被抢请刷新重试"),


    /**
     * 服务类型不存在
     */
    SERVICE_TYPE_NOT_EXIST(11002, "服务类型不存在"),



    ;

    private OrderErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;
    private final String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
